package Cn.Sarkar.MMS.DataBaseDefinations.Independent.Permission

import Cn.Sarkar.MMS.DataBaseDefinations.Additional.Descriptions
import Cn.Sarkar.MMS.DataBaseDefinations.Additional.Names
import Cn.Sarkar.Entities.Common.Table
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.*

object PermissionItems : Table("PermissionItem") {
    override var Comment: String = "ھوقوق ئىلىمىنىتلىرى"
    val NameID = intColumn("NameID") reference Names.ID
    val Code = stringColumn("Code") isN false size 16 comment "ھوقوق كودى، قىسقا ھەرىپ بەلگە بىلەن پەرىقلەندۈرىلىدۇ"
    val DescriptionID = intColumn("DescriptionID") reference Descriptions.ID
    val Additional = intColumn("Additional") comment "زاپاس ئىلىپ قويۇلغان ئىستون"
    init {
        unique(NameID, DescriptionID)
    }

    override val CATEGORY: Int = 12
}